<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>条件渲染</title>
    <script src="vue.js"></script>

</head>
<body>
<div id="div">
    <div v-if="num % 3 == 0">a</div>
    <div v-else-if="num % 3 == 1">b</div>
    <div v-else="num % 3 == 2">c</div>
    <div v-show="flag">d</div>
</div>
</body>
<script>
    new Vue({
        el:"#div",
        data:{
            num:1,
            flag:false
        }
    });
</script>
</html>